<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Regions extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('get_region');
        $this->load->helper('file');
        $this->load->helper('url');
    }
    public function index() {
        redirect("/404");
    }
    function getRegions(){
       $data["country"] =  $this->get_region->get($this->input->get('country'));
       echo json_encode($data);
    }
    
}
